Windows compile fix (BOTS)