add missing `#include <memory>` for `std::unique_ptr<T>`