fixed problems with building iOS version
fix  CMake changes
Merge pull request #1335 from alekcac:ios-build-fix