Moved spl_autoload_register to init() of the autoloader.