Add dirent for Win32 build