Only pass -D_GNU_SOURCE to cc on Linux.