GUI applications writing garbage to stdout/stderr