Add POSIX_C_SOURCE and GNU_SOURCE defines

These are needed on many newer platforms, include them by default
so that they don't have to be defined in PLATFORM_CFLAGS.