Had to go back to the old code here for now.

Besides the class loader, we also need the civicrm_db_settings global.