The patch has been sent to me by Dimitur Kirov, who is a Gajim dev. The problem this patch solves is FreeBSD-specific.
State Changed From-To: open->closed committed, thanks