[PD-dev] Patch for FreeBSD 6.0 (almost) (attempt two)