code changes so that it builds with the latest gazebo libraries