bug fixes for illumos