Modify configure script:
- make check for libavresample dependent on libavcodec (since the resample functions were removed from libavcodec)
- check for libevent 1 or >=2.1.4 but don't bail if other libevent is also present