Denominator identities for finite-dimensional Lie superalgebras and Howe duality for compact dual pairs