use calloc to get a zeroed memmory block instead of a memset loop

improves performance of small compressions by up to 40% with compilers
that can't optimize the loop to a memset