Index: common/Common.cpp
===================================================================
--- common/Common.cpp	(revision 50643fa388bf5420317a428ce9c1e35cb03bb8ce)
+++ common/Common.cpp	(revision 248e3c165945babbcf1139dee8fb7850da6491c7)
@@ -1,3 +1,9 @@
 #include "Common.h"
+
+#include "Compiler.h"
+
+#if defined WINDOWS
+   #include <winsock2.h>
+#endif
 
 #include <sstream>
@@ -29,6 +35,5 @@
       ioctlsocket(sock, FIONBIO, &mode);
    #elif defined LINUX
-      int flags;
-      flags = fcntl(sock, F_GETFL,0);
+      int flags = fcntl(sock, F_GETFL,0);
       assert(flags != -1);
       fcntl(sock, F_SETFL, flags | O_NONBLOCK);
