cleanup C++ compiler code
corect a few prototypes
reformat code