Updating to try and get it to work on OS X 10.8.

The original build appears to be targeted to OSX 10.9, but the only differences are some XCode configuration and the use of "firstElement" in several lists.  I've changed two or three places in the code, and updated the build configuration, to try to get it working on 10.8.  

It appears to compile and function correctly.