Fix out of tree builds after introduction of libavdevice.