fixed cflags and ldflags for upnp in configure