Update to reflect glfw api changes