iOS build errors fixes