fix-pointer-to-int-cast warninigs (64-bit)

moep