use different library names on different platforms

For darwin / Mac OS X the whole string is actually "darwin10.0".
Linux is the default (since it works for other systems, too),
but would be "linux-gnu".

Using RUBY_PLATFORM would work, but not on things like jruby.
This should be the correct way to do it.