fix kqueue build on freebsd/non intel archs.

KINFO_FILE_SIZE is only defined on intel archs.

close #4274.