fix compile error when run xcode on case-sensive file system.
Merge pull request #2080 from biteforest/master

fix compile error with xcode on case-sensitive file system.