fix mingw build for glfw3