Ensure that GCC version check is only done when the C compiler is actually GNU.