Updated the Ruby 1.8 branch to reflect the current master branch

Tested to build some libcurl libraries with this updated version and seemed to do the job just right.