Adding source code of ifaddrs to be available to Android

The full story is https://github.com/joyent/node/issues/7291.
The original source code of ifaddrs has been taken from https://github.com/kmackay/android-ifaddrs.