Do not link against qt gui.

By default QT contains core and gui modules.