add cppcheck and fix some catkin related issues