Fix compilation problems in DragonFly BSD 3.4 or higher.

It is highly possible it works for 3.2 too but it is
untested and I don't think it would be worth conditionalizing.