darwin: do not use _XOPEN_SOURCE