move #define _GNU_SOURCE from public header to .c file