Entropy methods for nonstrictly hyperbolic systems