Wrap _XOPEN_SOURCE_EXTENDED define in #ifndef