Pass the HAVE_QT* flags through the config header, like all others.

I don't know why it didn't work for the original author, but it definitely works now.