Fix compile error on Xcode 5.1.1 and below