osg3: packages: Deep copy env for each package

If a package like OSG changes the compiler. We don't want to change
the compiler for all packages. So we need to deep copy env.