packaging improvements

Including:
 - fix broken pristine build
 - gitignore update
TODO: better make clean