libnative: Implement get_host_addresses.
libstd: Use iotest! for for get_host_addresses.