Fix compilation with FFmpeg/Libav master
Use av_sha_alloc when available