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.