fix O_SYNC definition, cleanup fcntl.h