Fix for broken build of Maxcoin-Qt on linux

This is why some people have problem compiling GUI wallet on linux.
I had the same problem compiling namecoin-qt and found fix so should work for Maxcoin-Qt.