added default value for TreatWarningsAsErrors