Improved build support for Smart OS / Solaris

Improved build support for Smart OS / Solaris, including fix in zbeacon.c for skipping NULL broadcast addresses returned by getifaddrs for loopback interfaces on those platforms.