tests: fix build with libpurple 3.x.x
configure: add option for libpurple 3

Build can now be configured with --enable-purple=3 to enable compilation
against libpurple 3 and GStreamer 1.0.