Various packaging related fixes and enhancements

(Update of https://github.com/horde/horde/pull/24)