Fix build of src/common/utility.c on *BSD

The build was already fine on OpenBSD but not on FreeBSD for instance.
The patch extends the "#if defined __OpenBSD__" to DragonFly, FreeBSD
and NetBSD.

Note that this is tested on FreeBSD only.