[NEWLIB] Fix for baremetal compile.