SmartOS compile fix

avoid include of sys/sysctl.h on Illumos based OS