fixed compilation under illumos