Fix of pointer conversions and 32/64bit systems.