Build with protobuf support if available.