Fix bugfixes in new cache setup.
Add a new URL for fetching archives.

The goal is to open hosting the archive files on very simple static web
servers or even AWS S3, so we need the archives to be available on a
very simple filename based API.
Assorted portability fixes.

Now that it's possible and easy to play with pginstall with CCL, fix
some CL portability issues.