Non-equilibrium effects and multiphase flow in porous media