macosx .so -> dylib; makefile improvments