Fix struct stat portability