Feature detection cleanup

Cleaned-up multiple checks against LIBCURL_VERSION_NUM scattered throughout the code.