freebsd: also use struct stat instead of struct stat64 on freebsd