allow use of scons in smart-compile, other small improvements