Fix CTRL-C behavior on Windows