fix SCons dependency graph
fix type errors