Add -D_GNU_SOURCE for some of the newer POSIX functions