Bugfix ticket #411

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