Debian and OpenSUSE support

Adds support for Debian packaging including misc test fixes as required.