[iOS] Fixed C++ compat issues.