Fix GCC 4.8.0 build

Fails due to warnings about unused local typedefs in gmacros.h:162
Ensure that GCC version check is only done when the C compiler is actually GNU.