This allows namecoin-qt to build with UPNP support on Ubuntu 12.04

You'll have a much better idea if this patch has any far-reaching implications, but this fixes building for me with UPNP on Ubuntu 12.04 x86_86.