Ignore vim swap files
autotools fixes

1. Fail if pthread isn't found: it is mandatory.
2. Improve libmhash error message.