add hotkeys for wml menu items and some changed to compile it with msvc2010