Add vsync support for X11