apply patches from netbsd-userspace-src

(curiously, libc and libutil are part of kernel-src, since they
are both required for the tool build)
Merge branch 'kernel-src' into buildrump-src