fix build under cygwin
fix build under cygwin
Merge pull request #69 from twixraider81/upstream