Support getifaddr solaris to enable sys.hardware_addresses for that platform

Add an implementation of getifaddrs (taken from OpenSolaris) and call this in a solaris specific section in getmacaddress