Fix libavfilter compilation and make it more in line