Upgrade Ruby 1.8.7 to patchlevel 374

Results of 'make check':
https://gist.github.com/anonymous/5940431