[Udpcast] FreeBSD compatibility patch