New fixes to DragonflyBSD part of code