modified to work on Cygwin
Merge pull request #4 from masahino/build-on-cygwin

modified to work on Cygwin