Replace all the glut with the glfw.