Fix deprecated boost cast.
Link directly against costmap layers library.