Replace deprecated std::auto_ptr with boost::scoped_ptr

Change-Id: I8e11ffe888aac8887c4c0875c41de51f343debae