Fixed packaging to build on trusty

It might be slightly less clean but works. It was also tested on saucy.