in the process of fixing compile errors

some of these compile errors appear to be a problem with static classes, so i want to fix some
before going on to fixing those
fixed lambda issues
fixing more missing ; issues
more fixes. think all my stuff is good now.

needed to change lambda capture to be by reference instead of by value