qt: fix opportunistic linking when built from source

This should prevent #27898 from happening again in the future.

I don't think we need new bottles since the existing bottles are not linked to these libs.