An incomplete xcb-util port plus some extras