We include `winsock2.h` for compatibility with third party C libraries (zeromq and openssl to name a few). It works with all the versions of C compilers we have. Do you have a case where it does not compile? Note that we now compile with the `-DWIN32_LEAN_AND_MEAN` on Windows to avoid further issues.