use the extension .so, not ${RUBY_DLEXT}, because the files in case are from the distribution package and therefore have a fixed extension unrelated to the extension used on the local system. Fixes the package build on Mac OS X.