Fix build errors in windows.