Added Libraries API patch for considering multi-profiles.