heirloom-sh: build with our {C,LD}FLAGS; use register_shell.