Add some new compiler warnings and fix a few warnings