Improve packaging and in-the-tree build