Update library to 2.5.0. Fix iOS 6 crash; add optional delegate methods.