fixed Windows build errors