fix FreeBSD build issue