Update to Toni Rönkkö's latest version (1.12.1) of dirent.h