[mosq] add lib dependencies in makefile
[parsed] only print msg in debugging mode
[parsed] add a telegram length check