Fix linux link -lpthread
Add .gitignore
Fix build __MINGW32__
Merge pull request #1 from pavel-pimenov/master

Ubuntu fix + .gitignore