fixed iOS framework compile errors after recent changes
Merge pull request #581 from vpisarev:ios_fix