Fixed windows issues. Added nunit test building.
Test fix.