Update to new glfw3 API.