Fixed or silenced all warnings and turned on warnings-as-errors.