BUG/BLD: add compiler flag for older compilers

The -D_GNU_SOURCE is needed by older versions of GCC. Many newer versions
enable this flag by default, which is why it wasn't being caught before.
Merge pull request #3959 from cpcloud/ujson-cmplr-flag-fix

BUG/BLD: add compiler flag for older compilers