Added Keychain support for OSX.