Solve dependency loading problems using autoload