Fix build on illumos.
Identify Solaris based OS.
Merge pull request #211 from atcorner/illumos

Fix build on illumos.