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>