Integrates scons env variables

Huge change, much better now. Still doesn’t compile, however.