Fix windows build where O_SYNC doesn't exist