Fixed a bunch of compile errors. still a few left.