TODO: add configUSE_NEWLIB_REENTRANT, to improve newlib support