Define strdup and strncasecmp in separate file.