Install packages for libs first