Use non-const value for VS 2008 support.
Fix incorrect assertion when validating external pointers in NData::SetData.
Declare kNRangeNone/kNRangeAll as defines to allow use during static initialisation.
Handle WSACONNRESET in NWinNetwork::SocketRead.