WIP: clean up kmem.h to closely match illumos, remove some linuxisms
that crept in.