Make Latexmk work well with pdflatex and xelatex