Fix issue #330: it can't be build in Xcode46
Merge pull request #331 from pebble8888/xcode46patch

Fix issue #330: it can't be build in Xcode46