fixed some Xcode warnings in iOS 7