hpacker: Replace io::IFile with std::fstream