Update implementation of opj_calloc (#705)