refresh emulation, libk2pdfopt without mupdf linking, test fixes

See the commit descriptions.