Made XCode 5 and iOS 7.0 compatible