Fix CTRL+C handler for Windows