Adding pthread flag
Silenced some warnings from make
Use realclean instead of clean
Adding git ignore file