Stdenv refac

Similarly to before, please review not the whole change at once, but first the first commit as a commit that doesn't changes any derivation or output hash; then the second commit is the change over that that actually changes hashes.