waf: fix resampler check