fix provisioning of qt dependencies in debug install and use functions in custom cmake and unify config style