Replace Xlib by XCB (#200)

This pull request replaces the use of Xlib by XCB, a more modern library for working with X11.

Most work has been done by @Lukas-W. I fixed some issues and adjusted the X11 example. Commits have been squelched.