Added if defined to curl package definition to prevent Duplicate Declaration errors