Use a common way to determine if sockets are supported. (dm)