Define _GNU_SOURCE in config.h

Instead of passing it on the command line
Merge pull request #2000 from rubenk/define-gnu-source-in-configure-ac

Define _GNU_SOURCE in config.h