Pull proper dependencies for dpkg and use them

Ensure dpkg installs the necessary dependencies to enable the use of dpkg-source.
Patch sources to use gsha256sum and gnutar where necessary.