.gitignore: add C++ specific files

List taken from the gitignore project [1]

[1] https://github.com/github/gitignore