modify .gitignore
fix some compile errors.