Link winsock2 library on windows

Link the required library to avoid undefined references