Replace auto_ptr with boost::scoped_ptr.

Change-Id: Ibc6d532eff59146d8fbe7dcc7f9155ce6119f474