added a scandir and alphasort function to newlib