Added Joe Turpin's patch for publickey_from_memory.

Taken from the libssh2 mailing list:
http://www.libssh2.org/mail/libssh2-devel-archive-2012-03/0135.shtml