fixed declaration of 'struct stat'