undo changes to xlib