Rename ignore file for git.
Add missing link to pthread.
Sanitise install path.
Add bin to .gitignore.