Most warnings were harmless, some real bugs. Test set should now compile cleanly with ack, gcc, and clang.