Windows latexmlc test compat

These are the *final* compatibility enhancements needed for Windows portability. Ready for merging.