Pass stderr to callback

Small change to pass stderr onwards to the callback,
such that warnings / typing information can be handled.