Made file directory stuff for windows...dirent isn't 100% posix...so mingw doesn't always do what you want it to do...