fix build faild on Cygwin Environment
Merge pull request #759 from skandhas/pr-fix-build-on-cygwin

fix build faild on Cygwin Environment