Fix compile error for Xcode 6.0 beta 3.