Minor OSX changes and 10.6 support in xcode project.