Attempt to fix gcc version getter in CMake