Add debian packaging + some fixes