Define QT_NO_URL_CAST_FROM_STRING in the top-level CMakeLists.txt
This way won't be defined only if we build the hg stuff.