math/libRmath: Allow build with curl 8.0.0+
(cherry picked from commit 73ce71d9616a830defac91ade52cee661069b02d)