Restore GCC Build Flags only for 9.x branch to fix SODS.