Fix Scons deprecation warnings.