iOS: Fixing compile errors