fix mingw complie bug.