Added independent control of debugging variables in XYCalibrate

Added ability to control debugging of video and keyboard functions
separately.
Fixed a bug in disabling mouse handlers due to improper handling of long
directory names
- Allows ML to be installed on the C:\Documents and
Settings\users\name\Desktop