Fix the build on OS X (10.9.3)

In particular OS X doesn't have BLKGETSIZE64 or O_DIRECT.

Signed-off-by: David Scott <dave.scott@citrix.com>