Long time propagation of waves and the hyperbolic parametrix