[NEWLIB] Support for correct file-descriptor allocation.