Updated C++ networking code to use standard Win32 socket calls to enable better
error messages if the extension has networking issues on Windows.