fixes for stricter warnings
switched on and fixed a bunch of warnings