Test porting windows
Finish windows porting work