Xcode 6 compilation fix