Moodle 2.3 compatibilty fixes; pack 1