On Cygwin, use /proc file system instead of win32 API.