Correctly detect the compiler version and whether it is acceptable.