generator: fix C extension loaders