Some fixes

This fixes two warnings reported by GCC, as well as a crasher that happens when keybindings are disabled.