libnative: Implement get_host_addresses.

The last bit I needed to be able to use libnative :P