fix build error in Xcode 6.1