Fix problems that prevent the rwtocore stand-alone command running.
Remove futile attempts at Ruby 1.8 compatibility.