Fix iOS compile errors