Expand .gitignore for Windows and OS X

Just expanded the `.gitignore` with some other OS rules, obtained from the [github/gitignore](https://github.com/github/gitignore) repo.