Waste heat boiler in a compact design