Check for deprecated functions

Some functions will be removed in ROS Indigo and should not
be used any more.
Check for proper cmake_modules dependency

cmake_modules provides a number of custom configuration modules.
If one of these is used, there must be a proper build dependency.