Network backend: Use the regular connect() function in Windows

The do_connect() function uses some features of POSIX that the
compatibility layer in Windows does not provide.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
CMake: Adapt script for compiling under Visual Studio

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>