Fix PHP 5.3 compatibility

CallbackFilterIterator is only available since PHP 5.4.