BuildEnvironment: use separate sets for procs and symbols