fix GCC sanity check for versions prior to v4.2