Fix build on DragonFlyBSD.

Signed-off-by: Thomas Hurst <tom@hur.st>