Add detection of GCC version on old CMake by Johannes.