How to use dirent.h with Visual Studio

Updated post here: https://codeyarns.github.io/tech/2014-06-06-how-to-use-dirent-h-with-visual-studio.html