Make compilable on Cygwin
Merge pull request #643 from MihailJP/cygwinfix

Make compilable on Cygwin