fix mac native library