Fixes for Cygwin
Merge pull request #2 from neheb/master

Fixes for Cygwin