use static lib instead of dylib