Update code to match new Wrapper constructor API

The Wrapper class switch from using a std::auto_ptr to a std::unique_ptr.
This code was missed in the first pass of updating all code to use the
new API.
Merge pull request #5203 from Dr15Jones/updateToNewWrapperAPI

Update code to match new Wrapper constructor API