Updated gitignore for cpp

Based on the suggestions in the github/gitignore repo.