FIX: wrong `stat` struct layout for MacOSX.