Fixed compiler issues in Xcode 5 for iOS