Improved GCC version detection