Temporary fix for the installer
Add dirent.h and fix some errors in test_newlib.c