Fix some compile warnings on iOS