WIP: cleanups, remove incompatible kmem flags, replace with "correct" alternates.