Add dirent.h replacement for Windows port