update support libpurple<2.8

Signed-off-by: xiehuc <xiehuc@gmail.com>