(PUP-2344) Use the public loader for dependencies
This fixes the problem when only certain dependencies are visible.
Before it used "loader" which is a method that doesn't exist anymore.
Changing it to public_loader gets access to the publicly visible parts
of the other module.