Better detection of Ruby shared library extension

Use Config to detect dll extension (needs to be .so for Ruby 1.9 on Cygwin)