Fix Xcode 6 compile error