Fix upnp.c main problem for boost unit tests