Generate module accessors for transitive dependencies

Fixes #140