Fixed more cygwin-oriented bugs