cleaned up a lot of errors. It seems to compile OK now, but make still does not finish.
There are still plenty of errors while linking