Use boost::shared_ptr

Change-Id: I488accb1fb7588d6b91a8406d78f5897c12b3548