Fixed warnings.
Fixed iOS build.