- Added fixes for compiler warnings on a Mac

diff --git a/library/debug.c b/library/debug.c
index 33151db..58bb816 100644
--- a/library/debug.c
+++ b/library/debug.c
@@ -139,8 +139,9 @@
         if( X->p[n] != 0 )
             break;
 
-    snprintf( str, maxlen, "%s(%04d): value of '%s' (%d bits) is:\n",
-              file, line, text, ((n + 1) * sizeof( t_int )) << 3 );
+    snprintf( str, maxlen, "%s(%04d): value of '%s' (%lu bits) is:\n",
+              file, line, text, 
+              (unsigned long) ((n + 1) * sizeof( t_int )) << 3 );
 
     str[maxlen] = '\0';
     ssl->f_dbg( ssl->p_dbg, level, str );
diff --git a/library/net.c b/library/net.c
index a94ebf7..e3b1738 100644
--- a/library/net.c
+++ b/library/net.c
@@ -226,7 +226,7 @@
 {
     struct sockaddr_in client_addr;
 
-#if defined(__socklen_t_defined)
+#if defined(__socklen_t_defined) || defined(_SOCKLEN_T)
     socklen_t n = (socklen_t) sizeof( client_addr );
 #else
     int n = (int) sizeof( client_addr );