--- configure.orig	2012-03-01 21:32:18.000000000 +0100
+++ configure	2012-03-01 21:32:36.000000000 +0100
@@ -6420,7 +6420,7 @@
 #define HAVE_LIBCRYPTO 1
 _ACEOF
 
-  LIBS="-lcrypto $LIBS"
+  LIBS="-lcrypto -ldl $LIBS"
 
 fi
 
