The ifdef for USE_PNP below evals to "true" because it's defined to zero, thereby erroneously enabling UPNP even when it's initialized to zero, which is probably not what's desired. Commenting out the variable makes it not try to build UPNP support by default.
make USE_PNP=1 reenables it nicely.
(I assume the =0 was meant to default it to off?)