Removed XOPEN definition, as POSIX_C_SOURCE looks to be incompatible.