Fix the detection of preadv and pwritev on OSX in OSS