Removed -D_GNU_SOURCE and changed std mode to gnu99.

This fixes bugs with strdup not being defined, as well as WeeChat macro expansion.