Fixed issue #56: Add Cygwin workarounds