Add compability with ffmpeg's libswresample
Use pkg-config to determine FFmpeg linker flags (for Debian, see #758337)
Fix for previous commit which would not work when PKG_CONFIG also returned -L flags