updated with pffile and weak links to iOS 6 libs