driver: auto-import foreign imported types and values from other modules