Define QT_NO_DEBUG for build type None.

Debian sets the the build type to None for package builds.
Make sure we don't enable asserts there.

Closes #237
Enable debug mode for Travis CI builds.