Commented out defines in dirent.h

This method needs to be removed for windows and replaced with a system
call because the defines clash and prevent a clean compile