Fix prefix on extern "C" function name.
Implement end-of-file condition for WinRT stream sockets.
Add a workaround for Microsoft's non-conformant std::system_error.