compiler: cpp: generate declaration macros for functions
generate protocol/Type enum
lib/java: fix Guava deprecation warnings