write_riemann: only compile .proto files when enabled