fixed xcode 6.1 build error