Remove console window in Windows.

Used a different method to remove the console config flag from releases
in Windows.