fixed xcode compile error
Merge pull request #1033 from patrickmeehan/develop

fixed xcode compile error