add protobuf and -g to release builds + other cleanups