first attempt at a build script for "userspace"

(not tested in its present form, though I derived this commit from
the script I used in my experiments)