Applying this patch to readpass.c:

    http://thr3ads.net/openssh-unix-dev/2011/01/1197721-ssh-add-with-stdin-and-read_passphrase

Allows us to pipe in passwords using stdin for ssh-keygen and ssh-add.