More C++ cleanups. The only errors left are conversions from void *
to the "real" type. Not sure I want to uglify the code just for that.
There are, however, tons of warnings ;)
Oops, did not mean to commit g++!
More const's added.