Replace deprecated std::auto_ptr with boost::scoped_ptr

Change-Id: I55292f5f0049e7c77d5bb0e5ef5fa187b815d159