fix dirent.h errors on windows