diff -Nru orig/cld3/src/Makevars.ucrt patched/cld3/src/Makevars.ucrt
--- orig/cld3/src/Makevars.ucrt	1970-01-01 01:00:00.000000000 +0100
+++ patched/cld3/src/Makevars.ucrt	2021-02-17 19:45:39.770992000 +0100
@@ -0,0 +1,50 @@
+# ProtoBuf Version
+CXX_STD = CXX11
+
+PKG_CPPFLAGS = -I. 
+PKG_LIBS = -Llibcld3 -lstatcld3 \
+	-lprotobuf-lite
+
+STATLIB = libcld3/libstatcld3.a
+LIBCLD3 = \
+	libcld3/base.o \
+	libcld3/embedding_feature_extractor.o \
+	libcld3/embedding_network.o \
+	libcld3/feature_extractor.o \
+	libcld3/feature_types.o \
+	libcld3/fml_parser.o \
+	libcld3/language_identifier_features.o \
+	libcld3/lang_id_nn_params.o \
+	libcld3/nnet_language_identifier.o \
+	libcld3/registry.o \
+	libcld3/relevant_script_feature.o \
+	libcld3/sentence_features.o \
+	libcld3/script_span/fixunicodevalue.o \
+	libcld3/script_span/generated_entities.o \
+	libcld3/script_span/generated_ulscript.o \
+	libcld3/script_span/getonescriptspan.o \
+	libcld3/script_span/offsetmap.o \
+	libcld3/script_span/text_processing.o \
+	libcld3/script_span/utf8statetable.o \
+	libcld3/task_context.o \
+	libcld3/task_context_params.o \
+	libcld3/unicodetext.o \
+	libcld3/utils.o \
+	libcld3/workspace.o \
+	cld_3/protos/feature_extractor.pb.o \
+	cld_3/protos/sentence.pb.o \
+	cld_3/protos/task_spec.pb.o
+
+all: clean winlibs
+
+$(SHLIB): $(STATLIB)
+
+$(STATLIB): $(LIBCLD3)
+	$(AR) rcs $(STATLIB) $(LIBCLD3)
+
+winlibs:
+	protoc cld_3/protos/*.proto --cpp_out=.
+
+clean:
+	rm -f $(OBJECTS) $(SHLIB) $(LIBCLD3) $(STATLIB) cld_3/protos/*.pb.cc cld_3/protos/*.pb.h
+	(cd ..; sh cleanup)
