Fix some issues that incompatible with iOS 7, and now it needs Xcode 5.