In sources/open.c, struct stat is included from <sys/stat.h>, which is not provided here and therefor taken from mintlib. But the implementation of stat() uses the structure definition of include/ext.h, which is the Pure-C one.
I just wonder whether that can work at all?