build: remove redundant _GNU_SOURCE definitions