Subclasses of CNetworkJob handle this by overriding shutdown(). This patch implements it for CHttpJob by simply tearing down the underlying socket. We also automatically call shutdown() after the job finishes, regardless of success or failure. :^)
Errors go to stderr, debug output goes to the debug console. :^)
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.