fix: 3.12.1

fix 3.12.1 compilation with latest osx + merge natdynlink patch