Add dependency on message generation

Without this, sometimes the diagnostic aggregator is built before the diagnostic_msgs messages are generated. This is only an issue when using common_msgs from source, so nobody noticed until now.