fixes for newlib-nano