build: Adjustments for scons running in Python 3.