Replace deprecated std::auto_ptr with boost::scoped_ptr

Change-Id: I773524536c0ed7bc34eb08cd35cfc77e83f722ba