Makefile: Added -g to CFLAGSDEBUG
main.c: Added curly braces
protocols.c: Fixed prepending of the protocol