fix a warning from glfw api change