Bug fix on protobuf and added support for external dependency management systems