Make my own strdup since its not in ANSI C evidently, fixes make error about implicit declaration of function strdup