Hi,
This is a bug in cygwin win32 headers. See this:
http://cygwin.com/ml/cygwin/2003-09/msg01771.html
Hopefully it will be fixed soon. In the meantime, try changing
INVALID_FILE_ATTRIBUTES to -1 at line 402 of
mono/metadata/file-io.c.
bye
Zoltan