fix compile error by xcode
Merge pull request #28 from lite3/refactoring

fix compile error by xcode