fix some compiler error for mingw