There are many places in code where pointer is casted to integer type.
It`s ok in i386 (where size of ptr and int is the same, 4 bytes), but
could be a problem on amd64. I can replace such casts with long type
which is 32 bits on i386 and 64 on x86_64. Is it ok, or i misses something?