port linux version to glfw v3