Fix of pointer conversions and 32/64bit systems.
More fixes of pointer conversions and 32/64 bits.
Final fixes for 32/64bit integer goofups.