replace Sleep(1) on windows with an usleep implementation. Adjust batching size for Kepler kernel's interactive mode.