Fix compilation for 64-bit systems