fix several FTBS on Solaris/Illumos
Fix several FTBS issues on Solaris/Illumos, eg. missing includes and linking standard libs.
@alanc could you please check whether it's okay on commercial Solaris ? (only have Illumos available right now).
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
Fix several FTBS issues on Solaris/Illumos, eg. missing includes and linking standard libs.
@alanc could you please check whether it's okay on commercial Solaris ? (only have Illumos available right now).