Xcode project

- an Xcode project
- a readme documenting how to produce the Xcode project
- updated .gitignore
Compiler error fix

- Xcode project has somewhat more strict error checking defaults than the command line build. Returning NULL in an unreachable portion of code in socket.c to compensate.