Included string.h as strdup requires string.h if it is non-standard in the OS.