This is a backport of core#18077 [7/14]
https://github.com/bitcoin/bitcoin/pull/18077/commits/a8d9f275d0ca64797cc89627f8003b48b3efef63
> build: fix libnatpmp macos cross compile
core#21320
> build: use newer source for libnatpmp
> build: compile libnatpmp with -DNATPMP_STATICLIB on Windows
core#21209