Fixed stat64 problem on FreeBSD