Make what it's possible to make with gyp for MinGW
Refine MinGW changes in HTTPUpload::GetFileContents so it closes file after use