win32: dirent: handle errors