Fixed XLIB
My "Freeze game on lose focus" option had a few things wrong, still
crashing when the option is turned on but XLIB can at least compile now.
Merge pull request #585 from RobertBColton/master

Fixed XLIB