Add LIBTOOLFLAGS CXX tag to qt makefile include

Related #4993
Merge pull request #5092

6f155bd Add LIBTOOLFLAGS CXX tag to qt makefile include (Michael Ford)