scripts: remove references to flattening
compiler: don't pass environment when generating symbols