Fix Xcode 5 compile error