Rules adjustments in order to build on DragonFly BSD.

Patch by Robin Hahling.