Fix iOS/Mac build.
Merge pull request #1054 from rgngl/xcodeFix

Fix iOS/Mac build.