Fix paper build

This PR adds some flags to the `mpost`- and `pdflatex`-involcations for better error handling.