iOS: Compile fixes (Fixed #1069, #1086)

Fixed #1069
Fixed #1086