Finally writing valid xcode projects again.
Additional cleanup; test project actually compiles with generated xcode project.