Fixed new compiler to load frameworks for the environment that it is building and not for the environment that is running