Only compile raw socket code when it is supported on that platform.