Declare strdup only if it's not defined.