various legacy and linux-specific stuff

this commit is part of an effort to make more of busybox work
out-of-the-box.
7 files changed