Make this work with newer libcurl... oh how I hate thee.