Fixed registry_put/registry_get on Ruby 1.9.* for Windows