Don't redirect stdout under Windows
Fixed a call to Shell32 to make it backwards compatible with Windows releases