Make the build work on 1.9.3+

Hi,

Sorry, I should've tested the previous commits with other Rubies.  This PR should get the build working on 1.9.3+.  I haven't tried 1.8.7, is it supported? (I'd rather not support it)