Fix the gcc version detection on older OSX