Possible fixes to xlib errors