register an autoload function when composer is not available, thus remove all require_once in classes