Patches for Windows

These patches enable IRuby to work on Windows. I tested them with Ruby 2.0.0p195 [i386-mingw32], on Windows 8.1. Maybe they also work in other environment like cygwin.

If these codes break your code-style, please tell me the points.