Handle TreatWarningsAsErrors a bit better