Add more warnings options to scons project. Fixes a bunch of warnings produced by gcc. Fixed japp_promode not working on the first session.