Make viewer and latexmk work on windows