Fix for broken libpurple API