Add debugging support via the WITH_CURL_DEBUG knob. Properly use LC_ALL=C instead of LANG=C to run the test suite (thanks Fujishima-san!)