Revert "build: avoid defining _GNU_SOURCE"

This reverts commit 2e6a8f260ca169e2e1a5646eecfc322de6f77307.

Too many problems for now, such as with OSX and asprintf().