Fix build error for xcode 6.1