Accessibility patches ported from Connectbot

This patch is required to use Irssiconnectbot as a library project for SSH connection.