Turned on warnings as errors, fixed up the errors.