HACK: getifaddrs implementation based on src from https://github.com/android/platform_system_core and
https://code.google.com/p/android-source-browsing/source/browse/ifaddrs.c?repo=platform--external--dhcpcd
could certainly use some cleanup or even a proper implementation;