Add some OS X specific code for dealing with the keychain