fix build errors in windows