Use boost::ref(), not just ref()
Fix some cppcheck warnings
Fix compilation, gcc doesn't like use of the optional vars
Merge pull request #3 from pal-robotics/hydro-devel

cppcheck and gcc compilation fixes