[libc++] Fix directory_iterator compilation on Win32

This patch fixes some typos and other small errors in
directory_iterator.cpp that prevented this file from being compiled for
Win32.

Patch by Stefan Schmidt <thrimbor.github@gmail.com>!

Differential Revision: https://reviews.llvm.org/D66986

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@370599 91177308-0d34-0410-b5e6-96231b3b80d8
1 file changed