fixes for deprecation warning.
Merge pull request #2218 from julapy/ios-warning-fixes

ios fixes for warnings.