fix  error: ‘class std::ios_base::failure’ has no member named ‘code’
move impl of NZUtils::printProgress to cpp file