resove build issue on mingw platform