Fix warnings in the build
Turn on warnings-as-erros