C++ 11 Download Class (using libcurl and pthread)