Don't redefine _XOPEN_SOURCE and set it to 700 as previously.