Setting memory reserved by VirtualAllocEx to 1 TB (Azure 1Gb Vm does not like  4TB)
Calling setsockopt irrespective of platform