dpkg

Rebased patch for OS X against latest dpkg version.