Merge pull request #35 from tinysun212/pr-cygwin-1

Fixed for Cygwin