Fixing C++ support using g++ on Linux

I found this fix somewhere on the internet, so I don't claim support.  Using these additions my project (which uses hiredis) can compile using both g++ and gcc perfectly.