Fix for compilation
Cleaning up more old X stuff and implementing TWindow.HoldKey and TWindow.ReleaseKey