Express convoluted include walks directly in code, do not hide them in build scripts.
Move kernel object functions from its headers to compilation units, thereby reducing the kernel's text section, cache, and TLB footprint. Fix #1492