Send stdout and stderr to null when we don't have stdout or stderr.

This is the case when running on windows under pythonw (the default).