Add support for missing fsync(2).