Fix installation of external libraries