Make the environment reusable.
Merge pull request #694 from blakeembrey/compile-env

Make the environment reusable