Change libav* autodetection to support framedumping on Ubuntu 14.04

Add an "ugly" workaround in the AVIDump code, but looking at other project this
seems to be the most common way to handle this API change.
Merge pull request #615 from delroth/libav-ubuntu

Change libav* autodetection to support framedumping on Ubuntu 14.04