generator: fix import on Windows