Fix complie errors for iOS

Origin have so many errors when complie for iOS,I fix all errors,U can use this!I have tested this.