Four fixes.

While helping out with gitian deterministic builds I ran into 4 problems.