Add mtappVars.version and mtappVars.minor_version
Fix MTAppFullscreen
Tidy up the code of $.toInt()