Fixed windows issues. Added nunit test building.