Updated to run with Terminal.app build 303

Make xcode project work with 4.2.1 and LLVM compiler.
Update to be compatible with 10.8
Make XCode happier
Merge pull request #6 from falsefalse/master

Fixes Issue #3