Remove dist/ from gitignore
Update scripts to make building practical

Works on a fresh debian install with sudo.