apply patches from netbsd-userspace-src

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