Link libavdevice against libavutil, libavcodec, and libavformat