[fix] Fix linking with already installed packages