Fixing compilation on Cygwin

Fixes #473.