Fix assert output when assertion fails

Alloc static buffer for stderr