Check for supported GCC CCFLAGS when building tests.