- remove all $Log$ instances and the extra logs caused by our local changes.
- fix function call inconsistencies - fix int <-> long and pointer conversions It should run now on 64 bit machines...