posix/compat:  Match OS X PPC O_DIRECTORY to Intel

We need this to be a real flag because vfs relies on it to distinguish a
directory filehandle from a non-seekable stream.
Include extended-api-set/part-2.h for O_DIRECTORY
Merge branch 'O_DIRECTORY'