gpg-agent and misc bug fix.