Remove reliance on SSKeychain and make Mac OS X 10.6 compatible

Please note that I have NOT tested these changes thoroughly. They worked for me with my app, and allowed the SDK to run on 10.6, but it is possible they will have some effect on other usages of the API than what I do.