Turning on some warnings and fixing them