fix for https://github.com/glfw/glfw/issues/123