Compressional instability in the solar wind driven by wave dissipation