math/R: Allow build with curl 8.0.0+
Approved by: portmgr (blanket)
(cherry picked from commit 57d5d49107010fddf9ac7ff86fbbe1dbc50810e4)