Fix for Debian Wheezy

Earlier versions of libavutil didn't have the av_calloc function, making a fallback one