Move QT_CFLAGS/LIBS to configure.ac.