add first part of xcb swapchain creation; memory bug somewhere