unix, windows: fix parsing scoped IPv6 addresses