add .gitignore
Fix compiler warnings