Fix using _GNU_SOURCE when code is XOPEN+POSIX compatible. Use what you must,
not what you can.