--- a/vgauth/serviceImpl/saml-xmlsec1.c
+++ b/vgauth/serviceImpl/saml-xmlsec1.c
@@ -38,6 +38,8 @@
 #include <xmlsec/xmldsig.h>
 #include <xmlsec/templates.h>
 #include <xmlsec/crypto.h>
+/* xmlsec >= 1.3.13 app.h no longer pulls in dl.h (xmlSecCryptoDLLoadLibrary) */
+#include <xmlsec/dl.h>
 #include <xmlsec/errors.h>
 
 #include <glib.h>
