Contao 3 compatibility

Just some quick fixes :-)