Added support for windows command line apps that want an event loop.