initial fixes for illumos build