ios complilation fixes
ios compilation fixes