compat FEATURE use standalone compat "library"
diff --git a/src/xpath.c b/src/xpath.c
index 1a13f1f..2b2dcbc 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -29,6 +29,7 @@
 #include <string.h>
 
 #include "common.h"
+#include "compat.h"
 #include "context.h"
 #include "dict.h"
 #include "hash_table.h"