Use auto-compile-mode

Also fix all warnings on save.