Test for >= gcc 4, and change to g99 -std=gnu99 for the compiler if it is found.