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

I'm not sure if there are any farther reaching implications to this patch, I'll leave that up to you, but this fixes building for me with UPNP on Ubuntu 12.04 x86_86.