Fix build on OSX

i worked around peculiar libtool behavior (generating .bundle files rather than .so) on osx, and fixed the deprecation warnings raised by rake, rdoc, and flexmock. there are still a few deprecation warnings being raised in `cm17a.c`, but otherwise the build is working.