Replace deprecated std::auto_ptr with boost::scoped_ptr

Change-Id: I674b7ee507258555b667657a13db6fda9b8d8372