Auto merge of #567 - amosonn:master, r=alexcrichton

Added O_EXEC, O_SEARCH to solaris and musl, O_PATH to musl.

See #566.