lcw.c: stop using stdio streams altogether.