support cmake file for lib build under mingw64