Don't use reent struct yet.
TODO: Implement per task reent struct in a correct way.