Fixing scons compile.
Fixing seg fault.