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