Update for glfw api changes