Migrating to glfw 3.0