I would suggest to replace the use of QUrl and QString with a basic implementation.
Just because QT is a huge library and including this, just for a simple "Url" support class.
PS) I was patching all places with a very simple Url Class replacement to get the library working.