using dylib instead of static build