fix: Compilation on RedHat 7

Guard CURLOPT_UPLOAD_BUFFERSIZE with preprocessor checks
23 jobs for trusted-jorgen.lind/fix_rh7_compilation in 12 minutes and 39 seconds (queued for 6 seconds)