Added some utilities for XCB for later use.