Moved things around in the environments, and added a Compiler environment, so the optimization methods can poll for compilation options.