Fix for compiling zbeacon on FreeBSD