Rewrite .gitignore and .gitattributes
Add system namespace and pthread
Fix write error