replace ftime with gettimeofday on FreeBSD because lcompat is stupid