intial xlib support
Merge branch 'master' of https://github.com/kimmobrunfeldt/kauko
xlib specific parts