curl: add flags to allow gc-sections to strip out unused code