Use pkg-config to detect soundtouch and speex.