Build message_lib only after message generation

On faster machines, the makefile generated by cmake will thread quite a lot, and will attempt to compile messages_lib before the header files have been generated, failing the build.

This will force make to wait for the message generation to complete.