Factor libspeex configuration in configure script