Switch to using TCPDF in Moodle core + other fixes to avoid clashes with assignsubmission_pdf