Set input and output.

Also adds xmalloc, xrealloc, and xalloc_die for allocation helpers.
Default to yale romanization system.