updated for latest version of glfw3