(x11) don't use SwapBuffers in headless builds