--- a/include/ac/time.h
+++ b/include/ac/time.h
@@ -25,7 +25,7 @@
 #endif
 # include <time.h>
 
-#if defined(_WIN32) && !defined(HAVE_CLOCK_GETTIME)
+#if defined(_WIN32) && !defined(HAVE_CLOCK_GETTIME) && !defined(_TIMESPEC_DEFINED)
 	struct timespec {
 		time_t	tv_sec;
 		int 	tv_nsec;
--- a/libraries/liblber/lber.map
+++ b/libraries/liblber/lber.map
@@ -102,6 +102,7 @@
     ber_pvt_sb_do_write;
     ber_pvt_sb_grow_buffer;
     ber_pvt_socket_set_nonblock;
+    ber_pvt_wsa_err2string;
     ber_read;
     ber_realloc;
     ber_remaining;
