Corrected issues where functions were not available in Windows. Specifically strndup. Also accomodated an included needed for getcwd.