waf: allow to provide optional kwargs to the war check_cfg function
waf: add basic libav check
waf: add resamplers checks, redo how required dependencies abort config