Support both qt4 and qt5 in KDSOAP_GENERATE_WSDL.

Patch by Daniel Nicoletti.