Weyl's Unitary Trick for Compact Groups