make localizing STDOUT work properly in the debugger for perl 5.8.8
and below