Adds messages.h to CMakeLists.txt