make sure the Smarty_Resource_Custom class is loaded