Make stderred work on linux