Fix OpenGL VSync

Hopefully this also works on Mac and Linux