a better dylib creation script