Updated .gitignore file for Xcode 4.
Issue #10: Make it work in Mac OS 10.8. Also fixes Issue #8.