PHP Strict compatible
Remove unnecessary stuff
Introduce ugly hack for mPDF

mPDF uses a lot of preg_replace which does not work on very long CSS
files such as DokuWiki might produce. We need to somehow update the
cssmgr class - which only works with this hack.