Windows: use _setmaxstdio(2048) to increase the maximum files opened
limit.