Changed CMake options for enabling Qt support.

Closes #530.