Use pkg-config to find avcodec and swscale

Fedora puts the ffmpeg include files in a different location than Ubuntu. Using pkg-config makes things come out correctly.

pkg-config files are present on Ubuntu.