Fixed boost 1.53 issues

changed boost::shared_dynamic_cast to boost::dynamic_pointer_cast and
boost::shared_static_cast to boost::static_pointer_cast
Merge branch 'catkin' of https://github.com/cehberlin/hector_localization into catkin