fix 32-bit build
cleanup; refactoring ApplePS2Keyboard/MouseDevice