Removed some (but not all) of the line endings I accidentally added while in VS.

Fixed a bunch of issues related to compiling unittests on VS.

Having a problem linking against boost unit tests, so can't run the tests yet.