Hi Mathieu,
We would only deal with Linux, because that should solve the problem for 64-bit OSX at the same time. Unfortunately, Win64 will need some further fixes because its "long" type is not 64-bit (!!!).
the latter is trivial (under MSVC) as there's __int64, guaranteed to be 64-bit. On the other hand there's size_t for all platforms, and to my knowledge this _should_ on all platforms have the length of pointers.
best greetings, Thomas