Replace deprecated since C++11 and removed from C++17 `std::auto_ptr' smart pointer class with `std::unique_ptr' which luckily can be used as a drop-in replacement in this case. Reported by: pkg-fallout