Some minor improvements to our compiler flags strategy [ci skip].