fix gcc version check