fix wrong ag_calloc usage in NetBSD specific fix