Bring GLFW in line with new API