Fix 64-bit compatibility.