fix some mingw that don't have VC function