Enable -DQT_NO_URL_CAST_FROM_STRING + fix compilation.
Used QUrl instead of QString in methods that take a URL, so that the caller has to construct a QUrl correctly.