Changes to get code compiling under Mountain Lion

This is a small set of changes I had to make to get namecoin-qt compiling and running under Mac OS X (Mountain Lion). I haven't tested extensively, but I've got my build downloading the blockchain now and it seems happy.