Ruby on Windows (1.9) compatibility

In Windows there was a trio of errors stopping the module from functioning, as explained in the comments in the code. I have yet to find out if any of these changes hinder the module on other platforms, in all honesty, but I don't believe they should.