Fixed package builds for OpenSUSE and Ubuntu

This is series of packaging-related fixes for OpenSUSE and Debian.