Replace deprecated std::auto_ptr with boost::scoped_ptr

Change-Id: I72b0e8b07bd7309a23d5635b7e0b7dbdc9c2c721