Deal with multi-arch compilation architectures, when libraries exist for
different architectures on a given system.