Fix O_DIRECT build breakage on OS X

There's no O_DIRECT on OS X or Windows. Fix that up. Reported by @jpeach.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Merge pull request #121 from penberg/fix-osx-build

Fix O_DIRECT build breakage on OS X