Fix `gpr` with BSD mktemp.