fix the check for WM_WINDOW_SWITCHTAB and first part of enable/disable menu items
Merge branch 'master' of github.com:rhomobile/rhodes