Fix issues with downloading libraries