Made hotkey refactoring compile with cmake.