Updated gitignore for C++

Based on the suggestions in the github/gitignore repo.