Fixes to testext to make it compile on osx.
Change .so to .dylib on osx.