Find and implement the proper way to run ldconfig for both the linux
and linux32 emul subtrees on amd64, by setting LDCONFIG_ADD_CMD /
LDCONFIG_REMOVE_CMD.

While here, streamline a few things.