Fix compile error on Xcode6-beta3