fixed makefile and protocol.h