autotools: add support for disabling libsonic (--without-sonic/--with-sonic=no)