Add fsync(2), fdatasync(2), posix_fadvise(2) and posix_fallocate(2)

Creating PR as suggested in https://ghc.haskell.org/trac/ghc/ticket/8621