diff --git a/bindings/c/zmq.h b/bindings/c/zmq.h
index a65926ef..ff94dd4a 100644
--- a/bindings/c/zmq.h
+++ b/bindings/c/zmq.h
@@ -63,6 +63,9 @@ extern "C" {
#ifndef EADDRNOTAVAIL
#define EADDRNOTAVAIL (ZMQ_HAUSNUMERO + 6)
#endif
+#ifndef ECONNREFUSED
+#define ECONNREFUSED (ZMQ_HAUSNUMERO + 7)
+#endif
// Native 0MQ error codes.
#define EMTHREAD (ZMQ_HAUSNUMERO + 50)
diff --git a/builds/msvc/libzmq/libzmq.vcproj b/builds/msvc/libzmq/libzmq.vcproj
index 8927fa28..e575d67c 100644
--- a/builds/msvc/libzmq/libzmq.vcproj
+++ b/builds/msvc/libzmq/libzmq.vcproj
@@ -181,6 +181,10 @@
RelativePath="..\..\..\src\dispatcher.cpp"
>
+
+
@@ -289,6 +293,10 @@
RelativePath="..\..\..\src\thread.cpp"
>
+
+
@@ -375,6 +383,10 @@
RelativePath="..\..\..\src\encoder.hpp"
>
+
+
@@ -531,6 +543,10 @@
RelativePath="..\..\..\src\thread.hpp"
>
+
+