Porting to win32