Small fixes.

 * Log had an illegal IO flag.
 * xelatex and lualatex need log post-processing, too.