Emulate get_called_class for PHP < 5.3
Commit core classes