First step of Windows porting