Upgrading waste heat streams with wet compression