fix bug #63752 of compiling libxml with a non standard set of options

* encoding.c global.data globals.c testThreads.c: fix bug #63752
  of compiling libxml with a non standard set of options
Daniel
diff --git a/testThreads.c b/testThreads.c
index 8424d31..1c494ab 100644
--- a/testThreads.c
+++ b/testThreads.c
@@ -2,7 +2,7 @@
 #include <stdio.h>
 #include <libxml/xmlversion.h>
 
-#ifdef LIBXML_THREAD_ENABLED
+#if defined(LIBXML_THREAD_ENABLED) && defined(LIBXML_CATALOG_ENABLED)
 #include <libxml/globals.h>
 #include <libxml/threads.h>
 #include <libxml/parser.h>
@@ -128,7 +128,7 @@
 int
 main()
 {
-    fprintf(stderr, "libxml was not compiled with thread support\n");
+    fprintf(stderr, "libxml was not compiled with thread or catalog support\n");
     return (0);
 }
 #endif