Added support for compound keys and debian packaging