Fixing ambiguous std::unique_ptr usage in examples.