Update .gitignore.

- Avoid some OS X temporary files.
- Avoid some build files.
- Avoid some source control files.