Fix build on Xcode6