add environment option that enables treating warnings as errors, off by default

per Dirk's request