fixed extremely weird bug that prevented c procs from getting stdin

The fix was to do some file descriptor hackery in the
run process script (now runProcess3.sh).  Don't know why it
works, but it seems to.

Also, started adding C unit tests.