stdenv: In the fixupPhase, make the output writable first

Cherry-picked from 1d11c1dc48a3849f447350681ebba9d8cb97b979 in the
multiple-outputs branch.
patchelf: Update to 0.8

This fixes a segfault in building Eclipse and the Android SDK.