build: fix libavfilter check to include function prototype

Apparently the check error'ed on some compilers for missing prototype and
simply adding one fixes it.