[Bug 3598300]: unix: tcl.h does not include sys/stat.h.
(with an exception for OSX, for now)
... and fix cygwin build
[Bug 3598300]: unix: tcl.h does not include sys/stat.h.
(with an exception for OSX, for now)