Calculation of isentropic compressibility and sound velocity in two-phase fluids