Fix cmd windows popup when running under Windows.