update GLFW to 3.1 version for mac