Limit definition of XOPEN_SOURCE to Linux, where it's needed.