First go at making code work with Mac with GLFW