Add -D_GNU_SOURCE for linux to resolve asprintf compiler error