Add dirent.h header for Unix/mingw compatibility.