relicensing changes and windows compatibility
more chanages for win compatiblity