properly check and update protobuf library