Restore Xlib Display use and mix it with XCB calls.

Needed until we can port XKB related stuff completely to XCB.
Port XKEYBOARD extension query to XCB.