port header macro files to m4; delete gpp infra; fix glaring syntax errors in kcore/type.h