Fix build when Qt is enabled. Fixes #10.