fix file init for mingw thunc