diff --git a/cv-node/include/elas.h b/cv-node/include/elas.h
index a88439e6a1d0d42c37d14fda8ef13b4f6fe3ec30..e10acf0c7009273a020b21b49063c72e42f9ab88 100644
--- a/cv-node/include/elas.h
+++ b/cv-node/include/elas.h
@@ -35,14 +35,14 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA
 #ifndef _MSC_VER
   #include <stdint.h>
 #else
-  typedef __int8            int8_t;
-  typedef __int16           int16_t;
-  typedef __int32           int32_t;
-  typedef __int64           int64_t;
-  typedef unsigned __int8   uint8_t;
-  typedef unsigned __int16  uint16_t;
-  typedef unsigned __int32  uint32_t;
-  typedef unsigned __int64  uint64_t;
+//  typedef __int8            int8_t;
+//  typedef __int16           int16_t;
+//  typedef __int32           int32_t;
+//  typedef __int64           int64_t;
+//  typedef unsigned __int8   uint8_t;
+//  typedef unsigned __int16  uint16_t;
+//  typedef unsigned __int32  uint32_t;
+//  typedef unsigned __int64  uint64_t;
 #endif
 
 #ifdef PROFILE
diff --git a/cv-node/lib/elas/descriptor.h b/cv-node/lib/elas/descriptor.h
index 7abb0e718de3bd5988a1075ee127ca1d689a7e63..fe2c0ab1203036b574b161f7c34e81d39d1651ee 100644
--- a/cv-node/lib/elas/descriptor.h
+++ b/cv-node/lib/elas/descriptor.h
@@ -36,14 +36,14 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA
 #ifndef _MSC_VER
   #include <stdint.h>
 #else
-  typedef __int8            int8_t;
-  typedef __int16           int16_t;
-  typedef __int32           int32_t;
-  typedef __int64           int64_t;
-  typedef unsigned __int8   uint8_t;
-  typedef unsigned __int16  uint16_t;
-  typedef unsigned __int32  uint32_t;
-  typedef unsigned __int64  uint64_t;
+//  typedef __int8            int8_t;
+//  typedef __int16           int16_t;
+//  typedef __int32           int32_t;
+//  typedef __int64           int64_t;
+//  typedef unsigned __int8   uint8_t;
+//  typedef unsigned __int16  uint16_t;
+//  typedef unsigned __int32  uint32_t;
+//  typedef unsigned __int64  uint64_t;
 #endif
 
 class Descriptor {
diff --git a/cv-node/lib/elas/filter.cpp b/cv-node/lib/elas/filter.cpp
index d4f7954181e642bf337088d439175534fd8e6763..f98a21a49a86a6be8172662ab37c78bca0f0ea71 100644
--- a/cv-node/lib/elas/filter.cpp
+++ b/cv-node/lib/elas/filter.cpp
@@ -26,18 +26,18 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA
 #include "filter.h"
 
 // define fixed-width datatypes for Visual Studio projects
-#ifndef _MSC_VER
+//#ifndef _MSC_VER
   #include <stdint.h>
-#else
-  typedef __int8            int8_t;
-  typedef __int16           int16_t;
-  typedef __int32           int32_t;
-  typedef __int64           int64_t;
-  typedef unsigned __int8   uint8_t;
-  typedef unsigned __int16  uint16_t;
-  typedef unsigned __int32  uint32_t;
-  typedef unsigned __int64  uint64_t;
-#endif
+//#else
+//  typedef __int8            int8_t;
+//  typedef __int16           int16_t;
+//  typedef __int32           int32_t;
+//  typedef __int64           int64_t;
+//  typedef unsigned __int8   uint8_t;
+//  typedef unsigned __int16  uint16_t;
+//  typedef unsigned __int32  uint32_t;
+//  typedef unsigned __int64  uint64_t;
+//#endif
 
 // fast filters: implements 3x3 and 5x5 sobel filters and 
 //               5x5 blob and corner filters based on SSE2/3 instructions
diff --git a/cv-node/lib/elas/filter.h b/cv-node/lib/elas/filter.h
index 59af83ef06067dd9d4a3ee22184b2abf33938f17..4567bd9b7e7ed598cb0c9810f904fd912511ea59 100644
--- a/cv-node/lib/elas/filter.h
+++ b/cv-node/lib/elas/filter.h
@@ -26,18 +26,18 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA
 #include <pmmintrin.h>
 
 // define fixed-width datatypes for Visual Studio projects
-#ifndef _MSC_VER
+//#ifndef _MSC_VER
   #include <stdint.h>
-#else
-  typedef __int8            int8_t;
-  typedef __int16           int16_t;
-  typedef __int32           int32_t;
-  typedef __int64           int64_t;
-  typedef unsigned __int8   uint8_t;
-  typedef unsigned __int16  uint16_t;
-  typedef unsigned __int32  uint32_t;
-  typedef unsigned __int64  uint64_t;
-#endif
+//#else
+//  typedef __int8            int8_t;
+//  typedef __int16           int16_t;
+//  typedef __int32           int32_t;
+//  typedef __int64           int64_t;
+//  typedef unsigned __int8   uint8_t;
+//  typedef unsigned __int16  uint16_t;
+//  typedef unsigned __int32  uint32_t;
+//  typedef unsigned __int64  uint64_t;
+//#endif
 
 // fast filters: implements 3x3 and 5x5 sobel filters and 
 //               5x5 blob and corner filters based on SSE2/3 instructions
diff --git a/cv-node/lib/elas/matrix.h b/cv-node/lib/elas/matrix.h
index 5ec306cf193450fc14d03ead87d6ec444a3d8f3e..c559de7e96b669a3616cf17060c2818d3b71381c 100644
--- a/cv-node/lib/elas/matrix.h
+++ b/cv-node/lib/elas/matrix.h
@@ -31,14 +31,14 @@ Street, Fifth Floor, Boston, MA 02110-1301, USA
 #ifndef _MSC_VER
   #include <stdint.h>
 #else
-  typedef __int8            int8_t;
-  typedef __int16           int16_t;
-  typedef __int32           int32_t;
-  typedef __int64           int64_t;
-  typedef unsigned __int8   uint8_t;
-  typedef unsigned __int16  uint16_t;
-  typedef unsigned __int32  uint32_t;
-  typedef unsigned __int64  uint64_t;
+//  typedef __int8            int8_t;
+//  typedef __int16           int16_t;
+//  typedef __int32           int32_t;
+//  typedef __int64           int64_t;
+//  typedef unsigned __int8   uint8_t;
+//  typedef unsigned __int16  uint16_t;
+//  typedef unsigned __int32  uint32_t;
+//  typedef unsigned __int64  uint64_t;
 #endif
 
 #define endll endl << endl // double end line definition
diff --git a/cv-node/src/main.cpp b/cv-node/src/main.cpp
index 2db3b03c8c70f6e6ba5cb59ec42b65b4932ec8c1..ddc805e4d901a519ca0c72ab645004a60756264f 100644
--- a/cv-node/src/main.cpp
+++ b/cv-node/src/main.cpp
@@ -26,6 +26,10 @@
 #include "opencv2/highgui.hpp"
 #include "opencv2/core/utility.hpp"
 
+#ifdef WIN32
+#pragma comment(lib, "Rpcrt4.lib")
+#endif
+
 using ftl::Calibrate;
 using ftl::LocalSource;
 using ftl::Display;
diff --git a/net/cpp/src/main.cpp b/net/cpp/src/main.cpp
index 74730cbddcb4fca7ccc291e24a7c81c3e30691fd..e5f0e4b7bafd530472f5457b4efd405037b66c2f 100644
--- a/net/cpp/src/main.cpp
+++ b/net/cpp/src/main.cpp
@@ -12,6 +12,7 @@
 
 #ifdef WIN32
 #pragma comment(lib, "Ws2_32.lib")
+#pragma comment(lib, "Rpcrt4.lib")
 #endif
 
 using std::string;
@@ -78,7 +79,12 @@ int main(int argc, const char **argv) {
 	std::thread nthread(run);
 	
 	while (!stop) {
+#ifndef WIN32
 		char *line = readline("> ");
+#else
+		char line[300];
+		fgets(line, 299, stdin);
+#endif
 		if (!line) break;
 		
 		handle_command(line);
diff --git a/net/cpp/test/CMakeLists.txt b/net/cpp/test/CMakeLists.txt
index 4b577718032222d36c5b9c053181e0dcaec9b440..c87241f4d22e7447a22d9929f92a6e8eab6e5fad 100644
--- a/net/cpp/test/CMakeLists.txt
+++ b/net/cpp/test/CMakeLists.txt
@@ -32,7 +32,6 @@ add_dependencies(p2p_base_unit ftlnet)
 target_link_libraries(p2p_base_unit
 	ftlnet
 	${URIPARSER_LIBRARIES}
-	gflags
 	glog::glog
 	${UUID_LIBRARIES})
 
diff --git a/net/cpp/test/p2p_base_unit.cpp b/net/cpp/test/p2p_base_unit.cpp
index ee360c5539813becbf63492bfcc1afc664136348..911360ffacf1cc7a2b73e0cd34f07fcdfcf2e66d 100644
--- a/net/cpp/test/p2p_base_unit.cpp
+++ b/net/cpp/test/p2p_base_unit.cpp
@@ -11,6 +11,11 @@
 typedef int ssize_t;
 #endif
 
+#ifdef WIN32
+#pragma comment(lib, "Ws2_32.lib")
+#pragma comment(lib, "Rpcrt4.lib")
+#endif
+
 using ftl::net::Dispatcher;
 using ftl::net::Protocol;
 using ftl::net::Socket;