Fix errors in the build process

Employ cmake module to find the Eigen3 library
Get rid of deprecated link_libraries cmake command
Create dependencies on generated messages