Replace deprecated std::auto_ptr with boost::scoped_ptr

Change-Id: Ib05c6d509a71e01b50b2e23588da607f29036711