fix compile error in xcode 5

fix compile error in xcode 5