Fixes bugs in Qt setup.
Issue #13