Fix cmd windows popup when running under Windows.
Merge pull request #8 from jinie/master

Fix cmd window popup when running under Windows.