added helpers to Socket code for getsockopt - to make simpler and clearer; fixed warning about 64 bit overflow;  fixed bug with GetMulticastTTL () - was fetchiung wrong field