Use non-blocking socket.

- Use non-blocking socket.
- Added missing "iphlpapi.h" include.
- Added WINVER check.