fix compilation errors on Xcode5-DP / iOS 7