Refine 137bfeb -- disable optimizations only for problematic GCC versions.