common/hooks/*-pkg: misc tweaks for proper -dbg {creat,registrat}ion.