Fix Windows C version (_scandir)