Just applied Leonid Bobrovs pull request, which adds dragonfly bsd support.