The old stat(fs) record also works under current macOS versions. You cannot just change the stat(fs) record, you also have to change the used stat calls in that case. I have a local patch that changes all of that depending on the target macOS version (-WM) command line parameter *used to compile the RTL*, but I haven't committed it yet.