some windows deployment fixes