build: ensure shared libraries that use libc are built after libc.so is built
build: copy base image terminfo data across in targetdir builds
build: -ggdb for debugger builds (for build/kernel/kernel.debug - actual runtime kernel is stripped).