tests: fix build with libpurple 3.x.x