Fix issues in rcurl binary and related R functions (now tested on Windows)