Pass -std=gnu99 to enable C99+ mode when using GCC

The detection works also for Clang, which does support the -dumpversion flag.