Enable warnings and fix some violations