Consolidate detection of older GCC versions