Minor fixes, esp. XMLDB problems for Moodle version < 2.5