fix warnings on Illumos