Fixed gitignore files in c and c++ projects.