diff -ruN mongoose/Makefile mongoose.mod/Makefile
--- mongoose/Makefile 2010-09-26 21:07:14.000000000 -0300
+++ mongoose.mod/Makefile 2010-09-28 17:37:41.711547111 -0300
@@ -14,6 +14,8 @@
# -DNO_SSL - disable SSL functionality (-2kb)
# -DCONFIG_FILE=\"file\" - use `file' as the default config file
# -DHAVE_STRTOUI64 - use system strtoui64() function for strtoull()
+# -DSSL_LIB=\"libssl.so.<version>\" - use system versioned SSL shared object
+# -DCRYPTO_LIB=\"libcrypto.so.<version>\" - use system versioned CRYPTO so
##########################################################################
diff -ruN mongoose/mongoose.c mongoose.mod/mongoose.c
--- mongoose/mongoose.c 2010-09-26 21:07:14.000000000 -0300
+++ mongoose.mod/mongoose.c 2010-09-28 17:40:14.165544543 -0300
@@ -180,9 +180,13 @@
#define SSL_LIB "libssl.dylib"
#define CRYPTO_LIB "libcrypto.dylib"
#else
+#if !defined(SSL_LIB)
#define SSL_LIB "libssl.so"
+#endif
+#if !defined(CRYPTO_LIB)
#define CRYPTO_LIB "libcrypto.so"
#endif
+#endif
#define DIRSEP '/'
#define IS_DIRSEP_CHAR(c) ((c) == '/')
#define O_BINARY 0