Fixed SDK 8.0 Warnings

Fixed warnings when compiling with the iOS 8.0 SDK