Rewrite libtool link files (libfoo.la) for certain cached-build directories.

To always point to the current installation directory.

* Ensures that build targets linking those files always have a valid and
correct path.
* Reduces the number of "appears to have moved" warnings.