fix compilation issues with older libpurple