Turn on warnings for compiling runtime. Fix warnings that
result. CMake support is untested.