Add support for stderr capture