Correction of errors compiling on Linux with UPNP & IPV6 defines enabled.