Make mktemp in runtest.sh work on Linux

Added XXXXXX to temp filename template for mktemp in runtest.sh.
Set c standard to c99 in 5-7 and 6-3

Explicitly set c standard to c99 to make it work with gcc in Linux.