On the coupling of systems of hyperbolic conservation laws with ordinary differential equations