Bugfix ticket #411 (compilation with ruby 2 on windows)

Discussion, see #411. This patch is good on my system. (Windows 7 64bit, Ruby 2.0.0 p247 64, DevKit)