fix stdout, stderr if compiler failed