Moodle 2.4.x support

Two tiny changes in lib.php for Moodle 2.4.x support:
(1) change type_config_form() to static and add $classname param.
(2) Update search function declaration. (Add $page param)