xlib: initial check-in