boost::shared_*_cast are deprecated, removed in boost 1.53

This same change was made in Gazebo a while ago.

Please test on Ubuntu before releasing.