Fix more warnings found by clang

This should wrap up the warning blitz, but also fixes a minor bug in the class WarnAndContinueOnError.