Const protocol struct

Conflicts:
	src/protocol.h
Fix signed and unsigned warning
Fix warnings in resolv_test