Fix assert fail on FreeBSD in libdnet