Fix swift syntax and elevate deploy target to iOS 8.