Previous patch for Bitlbee stopped working so I have joined Bitlbee irc channel and asked for help. Dx picked up the challenge and wrote a new patch (15 minutes or so… Lawd I wish I had a brain so I could hack the code like that…)
More to the story + some useful info can be found here.
P.S. If You want to encrypt Your Bitlbee traffic use Stunnel :).