nitpick, but shouldn't this read `#if !(KERNEL_LINUX || (KERNEL_SOLARIS && HAVE_KSTAT_H))` ?