wds: make ipv6 address endian swap more portable