Changes make examples compile for Arduino Leonardo. Keyboard and Mouse are predefined there.