miniupnpd/natpmp.c: replace macros by functions

see commit 67c28e7f8b39717f1ed5489cef7caeafe3422d44 (and comments)