perl: fix on uClibc without IPv6 support