Fixed a bunch of warnings on iOS 7