Switch to use wxCurl and some minor fixes