Only check gcc version with more rececnt CMake that provides compiler version varialble.

Maybe not so useful becasue more recent CMake probably also means more recent gcc.
Merge branch 'garth/fix-issue-408-check-gcc-version' into next