fixes for Cygwin
Merge pull request #22 from bbarker/cygwinFixes

minor fixes for Cygwin