Fix compilation on Linux
Need to check for libavresample, in case we're using libav
Fix compilation with libav >= 9 beta1
Catch all exceptions from event handlers
Merge pull request #32 from jstamp/various

Various