Fix shell compilation with MinGW by including the 'dirent.h' header.