Update GLFW code for GLFW 3.0