Fixed gcc version checking