fix compile error on older mac osx
update
Merge pull request #148 from ideawu/master

Master