fix #1

avoid include of sys/sysctl.h on SmartOS
Merge pull request #323 from defel/SmartOS-compile-fixes

SmartOS compile fix