Cleanup: added more stringent compile warnings; addressed most of them